#hello.py
import os
from flask import Flask,request,url_for,redirect

app=Flask(__name__)

@app.route("/")
def index():
	
	return "hello world"

@app.route("/login",methods=['POST','GET'])
def login():
	print(str(request.method))
	if request.method=='POST':
		return "login success"
	return "login failed"

if __name__=="__main__":
	app.debug=True
	app.secret_key=os.urandom(128)
	app.run(port=8090)
